package com.lanou.moving.view;

import android.app.Activity;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.PopupWindow;
import com.lanou.moving.R;

/**
 * Created by 刘琪 on 15/11/4.
 */

public class SelectPopupWindow extends PopupWindow {
    private View mMenuView;
    private SlideDeleteListView slideDeleteListView;

    public SelectPopupWindow(Activity context, AdapterView.OnItemClickListener onItemClickListener, View view) {

        super(context);
        mMenuView = view;

        slideDeleteListView = (SlideDeleteListView) mMenuView.findViewById(R.id.music_list);
        slideDeleteListView.setOnItemClickListener(onItemClickListener);

        //设置SelectPopupWindow的View
        this.setContentView(mMenuView);
        //设置SelectPopupWindow弹出窗体的宽
        this.setWidth(500);
        //设置SelectPopupWindow弹出窗体的高
        this.setHeight(700);
        //设置SelectPopupWindow弹出窗体可点击
        this.setFocusable(true);
    }
}

